<include file="public:header" /> 
<include file="public:left" />
<style>
    td {
        text-align: center;
    }
</style>
<style type="text/css" src="__STATIC__/admin/css/style.css" ></style>
<style type="text/css" src="__STATIC__/admin/js/laydate/need/laydate.css" ></style>
<script src="__STATIC__/admin/js/laydate/laydate.js"></script>
<style>
    th,td {
        text-align: center;
    }
</style>
<section>
    <div class="page_title">
        <h2 class="fl">订单统计</h2>
        <form method="get">
            <input type="text" id="start_date" name="start" placeholder="开始时间" style="width: 150px;height: 18px;font-size: 11px;line-height: 17px; margin-left: 20px;float: left;margin-top: 10px; " <if condition="isset($_GET['start'])">value="{$_GET['start']}"</if>>
            <input type="text" id="end_date" name="end" placeholder="结束时间"  style="width: 150px;height: 18px;font-size: 11px;line-height: 17px; margin-left: 20px;float: left;margin-top: 10px; " <if condition="isset($_GET['end'])">value="{$_GET['end']}"</if>>
            &nbsp;
        <select name="order_status" style="width: 150px;height: 23px;font-size: 11px;line-height: 17px; margin-left: 20px;float: left;margin-top: 10px; ">
                <option value="">全部状态</option>
                <option value="-1" <if condition="isset($_GET['order_status']) && $_GET['order_status'] eq -1">selected</if>>取消订单</option>
                <option value="0" <if condition="isset($_GET['order_status']) && $_GET['order_status'] eq '0'">selected</if>>待付款</option>
                <option value="1" <if condition="isset($_GET['order_status']) && $_GET['order_status'] eq 1">selected</if>>已付款</option>
                <option value="2" <if condition="isset($_GET['order_status']) && $_GET['order_status'] eq 2">selected</if>>已发货</option>
                <option value="3" <if condition="isset($_GET['order_status']) && $_GET['order_status'] eq 3">selected</if>>已完成</option>
                <option value="4" <if condition="isset($_GET['order_status']) && $_GET['order_status'] eq 4">selected</if>>已退货</option>
            </select>
            <input type="submit" value="搜索" style="width: 45px; height: 25px;font-size: 11px; text-align: center;line-height: 10px;margin-top: 9px;margin-left: 10px;" />
        </form>
    </div>
    <table class="table">
        <tr>
            <th>品牌</th>
            <th>订单数</th>
            <th>订单总价</th>
        </tr>

        <volist name="order_all" id="vo">
        <tr>
            <td style="width: 60px;">{$vo.brand_name}</td>
            <td style="width: 350px;">{$vo.count_order_id}</td>
            <td style="width: 350px;">{$vo.total_price_sum}</td>
        </tr>
        </volist>
    </table>
</section>

</div>
</section>
<script>
    laydate({
        elem: '#start_date', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
        format: 'YYYY-MM-DD hh:mm:ss',
        istime: true,
        event: 'focus' //响应事件。如果没有传入event，则按照默认的click
    });
    laydate({
        elem: '#end_date', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
        format: 'YYYY-MM-DD hh:mm:ss',
        istime: true,
        event: 'focus' //响应事件。如果没有传入event，则按照默认的click
    });
</script>
</body>

</html>